package com.lxyk.domain;

import com.lxyk.utils.StrDateUtils;

import java.util.Date;

public class CourseInfo {
    private Integer id;
    private String name;
    private Integer sort;
    private Integer useFlag;
    private Date attendTime;
    private Integer cid;

    public CourseInfo() {
    }

    public CourseInfo(Integer id, String name, Integer sort, Integer useFlag, Date attendTime, Integer cid) {
        this.id = id;
        this.name = name;
        this.sort = sort;
        this.useFlag = useFlag;
        this.attendTime = attendTime;
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getUseFlag() {
        return useFlag;
    }

    public void setUseFlag(Integer useFlag) {
        this.useFlag = useFlag;
    }

    public Date getAttendTime() {
        return attendTime;
    }

    public String getAttendTimeStr() {
        return StrDateUtils.dateToStr(attendTime);
    }

    public void setAttendTime(Date attendTime) {
        this.attendTime = attendTime;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "CourseInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", useFlag=" + useFlag +
                ", attendTime=" + attendTime +
                ", cid=" + cid +
                '}';
    }
}
